#pragma once 
#include"common.hpp"

class connetion;

class IReactor{
public:
    virtual void Addconnection(std::shared_ptr<class connection> con) = 0;
    virtual void Delconnection(int fd) = 0;
    virtual void OpenReadAndWrite(int sockfd,bool enread,bool enwrite) = 0;
    virtual void start() = 0;
    virtual ~IReactor(){}
};